﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ccit.OA.NewsCenter
{
    interface IComment
    {
        /// <summary>
        /// 根据条件获得评论信息
        /// </summary>
        /// <param name="sNewsId">信息ID</param>
        /// <param name="sCommentContent">评论内容</param>
        /// <param name="sSortType">0：倒序(降序)；1：正序(升序)</param>
        /// <returns></returns>
        List<MsComment> GetCommentByClause(string sNewsId, string sCommentContent, string sSortType);

        /// <summary>
        /// 设置评论置顶
        /// </summary>
        /// <param name="sCommentIds"></param>
        /// <returns></returns>
        bool SetCommentTop(string sCommentIds);

        /// <summary>
        /// 取消评论置顶状态
        /// </summary>
        /// <param name="sCommentIds"></param>
        /// <returns></returns>
        bool CancelCommentTop(string sCommentIds);

        /// <summary>
        /// 删除评论
        /// </summary>
        /// <param name="sCommentIds"></param>
        /// <returns></returns>
        bool DeleteComment(string sCommentIds);

        /// <summary>
        /// 发表评论
        /// </summary>
        /// <param name="msComment"></param>
        /// <returns></returns>
        bool ExpressComment(MsComment msComment);
    }
}
